<?php

namespace api\slide\controller;

use think\Db;

class AdminGroupController extends \Aaa\slide\controller\AdminGroupController {
    public $baseField = [
        [
            'field' => 'id',
            'name' => 'ID',
        ],
        [
            'field' => 'name',
            'name' => '名称',
            'placeholder' => '请输入名称'
        ],
        [
            'field' => 'remark',
            'name' => '备注',
            'placeholder' => '请输入备注'
        ],
    ];

    function beforeIndex() {
        $this->actionField = ['id', 'name', 'remark'];
        $this->searchFieldx = [
            'common' => [
                'name' => 'accurate',
                'remark' => 'fuzzy',
            ],
        ];
    }

    function beforeEdit() {
        $this->actionField = ['name', 'remark'];
    }

    function beforeAdd() {
        $this->actionField = ['name', 'remark'];
    }

}
